package com.zlt.miaosha.exception;

import com.zlt.miaosha.result.CodeMsg;
import lombok.Getter;

/**
 * @author zhoulitong
 * @date 2018/6/14
 * @description 业务异常
 */
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = 4619050334333289921L;

    @Getter
    private CodeMsg cm;
    public GlobalException(CodeMsg cm){
        super(cm.toString());
        this.cm = cm;
    }
}
